package com.liu.my_blog_system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liu.my_blog_system.entity.TbUploadFile;
import com.liu.my_blog_system.utils.Result;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * (TbImage)表服务接口
 *
 * @author liuchengjie
 * @since 2021-04-20 14:16:50
 */
public interface TbUploadFileService extends IService<TbUploadFile> {

    Result uploadFile(MultipartFile file) throws IOException;

    void viewImage(String imageId,String openStyle,HttpServletResponse response) throws IOException;

    Result findFileListPage(Long current, Long size);
}
